package com.googlecode.gwt4gae.client.welcome;

import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.layout.CenterLayout;
import com.googlecode.gwt4gae.client.CententView;
import com.googlecode.gwt4gae.client.Gwt4gaeConstants;

public class WelcomeView extends CententView {
	public WelcomeView(WelcomeAction action) {
		super(action);
		tabItem.setId(Gwt4gaeConstants.WELCOME_ACTION_NAME);
	}

	@Override
	protected void createContent(TabItem parent) {
		parent.setText("Welcome");
		parent.setLayout(new CenterLayout());
		parent.setClosable(false);

		Text text = new Text();
		text.setText("gwt for google app engine!");
		parent.add(text);
	}

}
